/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2016年6月16日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package simplefactory;

/**
 * @Type RegexCatchPattern
 * @Desc
 * @author boboge
 * @date 2016年6月16日
 * @Version V1.0
 */
public class RegexCatchPattern extends AbstractCatchPattern {

    /*
     * (non-Javadoc)
     * 
     * @see simplefactory.AbstractCatchPattern#getCatchContent(java.lang.String)
     */
    @Override
    public String getCatchContent(String content) {
        return makeRegex(content);
    }

    /**
     * @param content
     * @return
     */
    private String makeRegex(String content) {
        return "正则表达式模式:" + content + "__to__regex";
    }

}
